package implementation;

import java.util.ArrayList;
import java.util.List;

public class Player {
	private String name;
	private int score;
	public List<RPSEnum> moves;
	private static final int NB_MOVES = 10;
	
	public Player(String name, List<RPSEnum> moves) {
		super();
		this.name = name;
		this.moves = moves;
		this.score = 0;
	}

	public Player(String name) {
		super();
		this.name = name;
		this.score = 0;
		this.moves = new ArrayList<RPSEnum>();
		for(int i = 0; i < NB_MOVES; i++)
			this.moves.add(RPSEnum.random());
	}

	
	public RPSEnum getNextMove(){
		return moves.listIterator().next();
	}
	public String getName() {
		return name;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public static int getNbMoves() {
		return NB_MOVES;
	}
	
	
}
